 <?php  $id = $this->uri->segment(3);  ?> 
<div class="btn-group">
     <a class="btn dropdown-toggle btn-small btn-primary" data-toggle="dropdown" href="#">
         Escolha uma Opção para:<br />
         <?php $this->load->model('ContaModel');
           $query = $this->ContaModel->getIdConta($id)->row();
           echo $query->descricao;
           ?>
    <span class="caret"></span>
    </a>
         
                    <ul class="dropdown-menu">
                      <?php
                           echo '<li>'.anchor(base_url(), '<i class="icon-home"></i> Voltar</a>', array('title'=>'Voltar','class'=>'link_')).'</li>';
                              
                           if($id == 1){
                                 echo '<li>'.anchor(base_url(). "ContaController/chamarTelaCadastrarConta/".$id , '<i class="icon-plus-sign"></i> Adicionar Conta', array('title'=>'Cadastrar Contas','class'=>'')).'</li>';
                           }
                           else{
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaCadastrarConta/".$id , '<i class="icon-plus-sign"></i> Adicionar Conta', array('title'=>'Cadastrar Contas','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaAlterarConta/".$id,'<i class="icon-pencil"></i> Alterar Conta',array('title'=>'Alterar Contas','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaExcluirConta/".$id,'<i class="icon-trash"></i> Excluir Conta', array('title'=>'Excluir Contas','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaDepositarConta/".$id ,'<i class="icon-plus"></i> Depositar', array('title'=>'Depositar','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaSacarConta/".$id ,'<i class="icon-minus"></i> Sacar', array('title'=>'Sacar','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaTransferirConta/".$id ,'<i class="icon-retweet"></i> Transferir', array('title'=>'Transferir','class'=>'')).'</li>';
                                echo '<li>'.anchor(base_url(). "ContaController/chamarTelaExtrato/".$id ,'<i class="icon-list-alt"></i> Extrato', array('title'=>'Extrato','class'=>'')).'</li>';
                            }
                            ?>
                        
                <!-- <li><a href="#"><i class="icon-pencil"></i> Edit</a></li>
                <li><a href="#"><i class="icon-trash"></i> Delete</a></li>
                <li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li>
                <li class="divider"></li>
                <li><a href="#"><i class="i"></i> Make admin</a></li>-->
                </ul>
                
            </div>
